Spread ASP.NET 6.0 Product Documentation
ComboBoxCellType Constructor(String[])
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ComboBoxCellType Class > ComboBoxCellType Constructor : ComboBoxCellType Constructor(String[])


items
Items for the list specified in a string array

Glossary Item Box

Creates a new combo box cell with the specified items in the combo box list.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal items() As String _
)
Visual Basic (Usage)Copy Code
Dim items() As String
 
Dim instance As New ComboBoxCellType(items)
C# 
public ComboBoxCellType( 
   string[] items
)

Parameters

items
Items for the list specified in a string array

Example

This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes.
C#Copy Code
    string[] cbstr; 
    cbstr = new String[] {"One", "Two", "Three"};
    FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType(cbstr);
    FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
Visual BasicCopy Code
    Dim cbstr As String()
    cbstr = New String() {"One", "Two", "Three"}
    Dim cb As New FarPoint.Web.Spread.ComboBoxCellType(cbstr)
    FpSpread1.ActiveSheetView.Columns(0).CellType = cb

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.